package com.example.smartauctionserver;

public class SmartNative {
	static {
		System.loadLibrary("my_lib");
	}
	
	
	public native int LedON(int number);
	public native int BuzzControler(int sw);
	public native int CameraSW(int[] pixel, int width, int height);
	public native int CameraIOctl(int cmd);
	public native int SegmentControl(int data);
	public native int TextLCDOut(String str0, String str1);
	public native int DotmatrixControl(int data);
//    public native int IOCtlWirteByte(String str);
//    public native int IOCtlPos(int pos);
//    public native int IOCtlClear();
//    public native int IOCtlReturnHome();
//    public native int IOCtlDisplay(boolean bOn);
//    public native int IOCtlCursor(boolean bOn);
//    public native int IOCtlBlink(boolean bOn);
	
	
	public void BuzzOn(int timer){
		
		BuzzControler(1);
		try {
			Thread.sleep(timer);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		BuzzControler(0);
	}
}
